//自主飞行、变质量选择

import {ref,computed} from 'vue';
import { useVarChooseStore } from '@/store/varChoose'
import { storeToRefs } from "pinia";

export default function useConfigFile() {
const varChooseStore = useVarChooseStore()
const { jsonMsg } = storeToRefs(varChooseStore)
const checkedItems_3 = ref<any>([]);    //多选框-2
const popoverVisible_3 = ref(false);      // 控制 Popover 显示/隐藏 ---多选框
const options_3 = computed(() => jsonMsg.value?.sequence[2]?.items ?? [])
// 确认选择
const confirmSelection_3 = () => {
    console.log('选中的值：', checkedItems_3.value);
    popoverVisible_3.value = false;
};

//输入框
const handleInputChange_3 = (value: any) => {
    console.log('当前输入值:', value);
};

return {checkedItems_3,popoverVisible_3,options_3,confirmSelection_3,handleInputChange_3}

}